package org.cnc.explain.configbean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * org.cnc.spring.explain.lifecycle.metaconfig - UserBean1
 *
 * @author tony-is-coding
 * @date 2022/6/29 14:16
 */
@Component
@Primary
@Scope("prototype")
@Lazy
public class MetaConfigBean {

	@Autowired
	MetaConfigBeanDependence metaConfigBeanDependence;

	@Resource
	MetaConfigBeanDependence metaConfigBeanDependenceResource;

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "MetaConfigBean{" +
				"metaConfigBeanDependence=" + metaConfigBeanDependence +
				", metaConfigBeanDependenceResource=" + metaConfigBeanDependenceResource +
				", name='" + name + '\'' +
				'}';
	}
}
